/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.dp.vo;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

/**
 *
 * @author wyr
 */
@Entity
@Table(name = "t_sys_sysparam")
//@NamedQueries({@NamedQuery(name = "TSysSysparam.findAll", query = "SELECT t FROM TSysSysparam t"), @NamedQuery(name = "TSysSysparam.findByPfirstname", query = "SELECT t FROM TSysSysparam t WHERE t.tSysSysparamPK.pfirstname = :pfirstname"), @NamedQuery(name = "TSysSysparam.findByPlastname", query = "SELECT t FROM TSysSysparam t WHERE t.tSysSysparamPK.plastname = :plastname"), @NamedQuery(name = "TSysSysparam.findByPvalue", query = "SELECT t FROM TSysSysparam t WHERE t.pvalue = :pvalue"), @NamedQuery(name = "TSysSysparam.findByPdesc", query = "SELECT t FROM TSysSysparam t WHERE t.pdesc = :pdesc")})
public class TSysSysparam implements Serializable {
    private static final long serialVersionUID = 1L;
    @EmbeddedId
    protected TSysSysparamPK tSysSysparamPK;
    @Column(name = "pvalue")
    private String pvalue;
    @Column(name = "pdesc")
    private String pdesc;
    @Column(name = "pdisplay")
    private Integer pdisplay;

    public TSysSysparam() {
    }

    public TSysSysparam(TSysSysparamPK tSysSysparamPK) {
        this.tSysSysparamPK = tSysSysparamPK;
    }

    public TSysSysparam(String pfirstname, String plastname) {
        this.tSysSysparamPK = new TSysSysparamPK(pfirstname, plastname);
    }

    public TSysSysparamPK getTSysSysparamPK() {
        return tSysSysparamPK;
    }

    public void setTSysSysparamPK(TSysSysparamPK tSysSysparamPK) {
        this.tSysSysparamPK = tSysSysparamPK;
    }

    public String getPvalue() {
        return pvalue;
    }

    public void setPvalue(String pvalue) {
        this.pvalue = pvalue;
    }

    public String getPdesc() {
        return pdesc;
    }

    public void setPdesc(String pdesc) {
        this.pdesc = pdesc;
    }
    
    public Integer getPdisplay() {
		return pdisplay;
	}

	public void setPdisplay(Integer pdisplay) {
		this.pdisplay = pdisplay;
	}
	

	@Override
    public int hashCode() {
        int hash = 0;
        hash += (tSysSysparamPK != null ? tSysSysparamPK.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof TSysSysparam)) {
            return false;
        }
        TSysSysparam other = (TSysSysparam) object;
        if ((this.tSysSysparamPK == null && other.tSysSysparamPK != null) || (this.tSysSysparamPK != null && !this.tSysSysparamPK.equals(other.tSysSysparamPK))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.dp.vo.TSysSysparam[tSysSysparamPK=" + tSysSysparamPK + "]";
    }

}
